package com.lenovo.testreport.qa.web.compatibility.mapper;

import com.lenovo.testreport.qa.web.compatibility.model.QaWebCompatibilityCase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CJF
 * @date 2018/11
 */

@Mapper
public interface QaWebCompatibilityCaseMapper {

    int deleteByPrimaryKey(@Param("tablename") String tablename, Integer cid);

    int insert(@Param("tablename") String tablename, QaWebCompatibilityCase record);

    int insertSelective(@Param("tablename") String tablename, QaWebCompatibilityCase record);

    QaWebCompatibilityCase selectByPrimaryKey(@Param("tablename") String tablename, Integer cid);

    int updateByPrimaryKeySelective(@Param("tablename") String tablename, QaWebCompatibilityCase record);

    int updateByPrimaryKey(@Param("tablename") String tablename, QaWebCompatibilityCase record);

    List<QaWebCompatibilityCase> selectByRid(@Param("tablename") String tablename, int rid);

    List<QaWebCompatibilityCase> selectByCid(@Param("tablename") String tablename, int id);

    int updateTrackByCid(@Param("tablename") String tablename, QaWebCompatibilityCase record);

    List<QaWebCompatibilityCase> selectBrowserByRid(@Param("tablename") String tablename, int rid);

    List<QaWebCompatibilityCase> selectByRidAndType(@Param("tablename") String tablename, int rid, String type);

}